<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<?php 
	$a = array(2, 3, 7, 8, 34, 56, 67, 78);
?>
Count: <?php echo count($a);?><br>
Max: <?php echo max($a); ?><br>
Min: <?php echo min($a); ?><br>
Sort: <?php sort($a); 
			//Show all elements of array $a
			echo "<pre>"; 
				print_r($a); 
			echo "</pre>";
		?>
Reverse Sort: <?php rsort($a); 
			//Show all elements of array $a
			echo "<pre>"; 
				print_r($a); 
			echo "</pre>";
		?>
Implode: <?php echo implode('*', $a); ?> <!-- Convert an array into a string--><br>
Explode: <?php $emails = 'anh@mail.com, admin@yahoo.com, anh@gmail.com';
	$split = explode(',', $emails);
	echo "<pre>";
		print_r($split);
	echo "</pre>";
	$last = end($split);
	echo $last;
 ?>
</body>
</html>
